﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ViewModels.Login
{
    #region token
    public class TokenInfoViewModel
    {
        public bool success { get; set; }
        public string token { get; set; }
        public double expires_in { get; set; }
        public string token_type { get; set; }
    }
    #endregion
    #region 角色管理
    public class Role_VM
    {
        /// <summary>
        /// 角色id
        /// </summary>
        public string roleId { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        public string jsm { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        public string jsms { get; set; }
    }
    public class Menu
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public string menuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string menuName { get; set; }
        /// <summary>
        /// 图标名称
        /// </summary>
        public string iconName { get; set; }
        /// <summary>
        /// 打开窗体
        /// </summary>
        public string winformName { get; set; }
        /// <summary>
        /// 状态,1表示可用，2表示置灰，3表示不可用
        /// </summary>
        public string isEnable { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public int sort { get; set; }
        /// <summary>
        /// 路由地址
        /// </summary>
        public string routeaddress { get; set; }
    }
    public class Menu1
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public string menuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string menuName { get; set; }
        /// <summary>
        /// 图标名称
        /// </summary>
        public string iconName { get; set; }
        /// <summary>
        /// 打开窗体
        /// </summary>
        public string winformName { get; set; }
        /// <summary>
        /// 状态,1表示可用，2表示置灰，3表示不可用
        /// </summary>
        public string isEnable { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public int sort { get; set; }
        /// <summary>
        /// 路由地址
        /// </summary>
        public string routeaddress { get; set; }
        /// <summary>
        /// 1级列表
        /// </summary>
        public List<Menu> con { get; set; }
    }
    public class Menu2
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public string menuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string menuName { get; set; }
        /// <summary>
        /// 图标名称
        /// </summary>
        public string iconName { get; set; }
        /// <summary>
        /// 打开窗体
        /// </summary>
        public string winformName { get; set; }
        /// <summary>
        /// 状态,1表示可用，2表示置灰，3表示不可用
        /// </summary>
        public string isEnable { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public int sort { get; set; }
        /// <summary>
        /// 路由地址
        /// </summary>
        public string routeaddress { get; set; }
        /// <summary>
        /// 2级列表
        /// </summary>
        public List<Menu1> con { get; set; }
    }
    public class Menu3
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public string menuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string menuName { get; set; }
        /// <summary>
        /// 图标名称
        /// </summary>
        public string iconName { get; set; }
        /// <summary>
        /// 打开窗体
        /// </summary>
        public string winformName { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public int sort { get; set; }
        /// <summary>
        /// 3级列表
        /// </summary>
        public List<Menu2> con { get; set; }
    }
    /// <summary>
    /// 新增或修改角色
    /// </summary>
    public class AddRole
    {
        /// <summary>
        /// 角色id
        /// </summary>
        public string roleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string roleName { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        public string roleDesc { get; set; }
        /// <summary>
        /// 菜单id列表
        /// </summary>
        public List<string> menuIdList { get; set; }
    }
    #endregion
    #region 用户维护
    /// <summary>
    /// 用户维护界面用到的查询
    /// </summary>
    public class Search1
    {
        /// <summary>
        /// 工作站代码
        /// </summary>
        public string ksdm { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public string roleId { get; set; }
        /// <summary>
        /// 职称id
        /// </summary>
        public string zcid { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        public string zw { get; set; }
        /// <summary>
        /// 用户id或姓名或拼音码
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public int sfky { get; set; }
    }
    /// <summary>
    /// 职称列表
    /// </summary>
    public class Function
    {
        /// <summary>
        /// 职称id
        /// </summary>
        public string zcid { get; set; }
        /// <summary>
        /// 职称名称
        /// </summary>
        public string zcmc { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public decimal? sort { get; set; }
    }
    /// <summary>
    /// 角色列表
    /// </summary>
    public class jsList
    {
        /// <summary>
        /// 角色id
        /// </summary>
        public string jsid { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string jsmc { get; set; }
    }
    /// <summary>
    /// 添加或修改一个用户
    /// </summary>
    public class addUser
    {
        /// <summary>
        /// 手机号码（2021-01-06新增）
        /// </summary>
        public string phoneNumber { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string jobNumber { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 职称id
        /// </summary>
        public string zcid { get; set; }
        /// <summary>
        /// 抗生素级别
        /// </summary>
        public List<string> kssjb { get; set; }
        /// <summary>
        /// 毒麻药级别
        /// </summary>
        public List<string> dmyjb { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public List<jsList> js { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string xgr { get; set; }
        /// <summary>
        /// 拼音码
        /// </summary>
        public string pym { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public string isEnable { get; set; }
        /// <summary>
        /// 所在工作站id
        /// </summary>
        public string gzzid { get; set; }
        /// <summary>
        /// 用户职务id
        /// </summary>
        public string zwid { get; set; }
        /// <summary>
        /// 诊疗小组id
        /// </summary>
        public string zlxzid { get; set; }
        /// <summary>
        /// 中医类治疗项目权限
        /// </summary>
        public short? item_type { get; set; }
        /// <summary>
        /// 查询日志权限标志，null和1表示可查看，2表示不可查看
        /// </summary>
        public string LOG_FLAG { get; set; }
        /// <summary>
        /// 其他工作站id列表(传list《string》序列化后的格式)
        /// </summary>
        public string OTHER_DEPARTMENTID_LIST { get; set; }
    }
    #endregion
}
